package com.javacoo.fastdfs.client.api.pool;

import com.javacoo.fastdfs.client.config.FastDFSConfig;

/**
 * StorageClient1Wrapper对象池接口
 * <p>说明:</p>
 * <li></li>
 * @author duanyong@jccfc.com
 * @date 2020/5/3 15:04
 */
public interface StorageClient1WrapperPool {
    /**
     * 初始化
     * <p>说明:</p>
     * <li></li>
     * @author duanyong@jccfc.com
     * @date 2020/5/3 15:18
     * @param fastDFSConfig
     */
    StorageClient1WrapperPool init(FastDFSConfig fastDFSConfig) throws Exception;
    /**
     *  从对象池中获取StorageClient1Wrapper
     * <p>说明:</p>
     * <li></li>
     * @author duanyong@jccfc.com
     * @date 2020/5/3 15:18
     */
    StorageClient1Wrapper getClient() throws Exception;
    /**
     *  释放StorageClient1Wrapper
     * <p>说明:</p>
     * <li></li>
     * @author duanyong@jccfc.com
     * @date 2020/5/3 15:19
     * @param storageClient1Wrapper
     */
    void releaseClient(StorageClient1Wrapper storageClient1Wrapper);
    /**
     * 打印对象池信息
     * <p>说明:</p>
     * <li></li>
     * @author duanyong@jccfc.com
     * @date 2020/5/3 15:20
     */
    void dumpPoolInfo();
}
